#define  _CRT_SECURE_NO_WARNINGS   1
#include "SList.h"
//void test()
//{
//	SLNode* node1 = (SLNode*)malloc(sizeof(SLNode));
//	SLNode* node2 = (SLNode*)malloc(sizeof(SLNode));
//	SLNode* node3 = (SLNode*)malloc(sizeof(SLNode));
//	SLNode* node4 = (SLNode*)malloc(sizeof(SLNode));
//
//	node1->data = 1;
//	node2->data = 2;
//	node3->data = 3;
//	node4->data = 4;
//
//	node1->next = node2;
//	node2->next = node3;
//	node3->next = node4;
//	node4->next = NULL;
//
//	SLNode* plist = node1;
//	my_printf(plist);
//
//}
void test0()
{
	SLNode* plist = NULL;
	/*SLDpushBack(&plist,1);
	SLDpushBack(&plist,2);
	SLDpushBack(&plist,3);
	SLDpushBack(&plist,4);*/
	SLDpushFront(&plist, 1);
	SLDpushFront(&plist, 2);
	SLDpushFront(&plist, 3);
	SLDpushFront(&plist, 4);

	SLDpopFront(&plist);
	my_printf(plist);
	SLDpopFront(&plist);
	my_printf(plist);
	SLDpopFront(&plist);
	my_printf(plist);

	/*SLDpopBack(&plist);
	my_printf(plist);
	SLDpopBack(&plist);
	my_printf(plist);*/

}
int main()
{
	//test();
	test0();
	return 0;
}